package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @CustService
 * @用户环信账户(cust_service)
 * @version : Ver 1.0
 */
@TableName("cust_service")
public class CustService implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:用户环信账户表id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:
	 * @字段:muser_id BIGINT(19)
	 */
	private Long muserId;
	/**
	 * 备注:
	 */
	@TableField(exist = false)
	private Muser muser;


	/**
	 * @备注:环信中的用户名（默认用户手机号）
	 * @字段:username VARCHAR(20)
	 */
	private String username;


	/**
	 * @备注:密码
	 * @字段:password VARCHAR(20)
	 */
	private String password;


	/**
	 * @备注:创建时间
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime;


	public CustService(){
	}

	public CustService(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}

	public void setMuserId(Long muserId) {
			this.muserId = muserId;
			}

	public Long getMuserId() {
			return this.muserId;
	}
	public void setMuser(Muser muser) {
		this.muser = muser;
	}

	public Muser getMuser() {
		return this.muser;
	}


	public void setUsername(String username) {
		this.username = username;
	}

	public String getUsername() {
		return this.username;
	}


	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return this.password;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}
}
